<?php

namespace App\Http\Controllers\API;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class UtilController extends Controller
{
    public function pipeGet(Request $request)
    {
        $parameters = $request->all();
        $url = $parameters['url'];
        unset($parameters['url']);
        return postCurl($url,$parameters);
    }

    public function pipePost(Request $request)
    {
        $parameters = $request->all();
        $url = $parameters['url'];
        unset($parameters['url']);
        return postCurl($url,$parameters);
    }
}
